package com.qf.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;

@Configuration
public class HashMapConfig {

    @Bean    // 简单的理解为： <bean id="mapMethod" class="HashMapConfig" factory-method="map" />
    public HashMap mapMethod(){
        HashMap map = new HashMap();
        map.put("xxx","yyyy");
        map.put("xxx1","yyyy");
        map.put("xxx2","yyyy");
        map.put("xxx3","yyyy");
        return map;
    }
}
